<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>

    // function fn() {
    //   console.log(666)
    // }

    // setInterval(fn, 1000)

    // setInterval(function () {
    //   console.log(777)
    // }, 500)

    let int = setInterval(function () {
      console.log(555)
    }, 500)

    clearInterval(int)

    console.log(int)

    let int2 = setInterval(function () {
      console.log(555)
    }, 500)

    console.log(int2)

  </script>
</body>

</html>